package com.iri.json;

public class LoadSensorValues {
	JSONObject json = new JSONObject(JSONObject.parseSocket(//socket));
	
	
	
	public void JSON2ObjectAnalogue() {
		JSONObject jA= json.getJSONObject(null);
		
		String name = jA.getString(JSONSocket.name);
		String type = jA.getString(JSONSocket.type);
		double value = jA.getDouble(JSONSocket.value);
		String unit = jA.getString(JSONSocket.unit);
		String timeStamp = jA.getString(JSONSocket.timeStamp);
		double lowerLimit = jA.getDouble(JSONSOcket.lowerLimit);
		double upperLimit = jA.getDouble(JSOnSocket.upperLimit);
		String lowerLimitAlarmName = jA.getString(JSONSocket.lowerLimitAlarmName);
		String upperLimitAlarmName = jA.getString(JSONSocket.upperLimitAlarmName);
	}
	
	public void JSON2ObjectBinary() {
		JSONObject jB = json.getJSONObject(null);
				
		String name = jB.getString(JSONSocket.name);
		String type = jB.getString(JSONSocket.type);
		boolean value = jB.getBoolean(JSONSocket.value);
		String timeStamp = jB.getString(JSONSocket.timeStamp);
		String alarmName = jB.getString(JSONSocket.alarmName);
	}
}
